﻿<%
	String pathl = request.getContextPath();
	String basePathl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+pathl+"/";
%>
<!-- 本页面涉及的js函数，都在head.jsp页面中     -->
<div id="sidebar" class="menu-min">
		<div id="sidebar-shortcuts">

			<div id="sidebar-shortcuts-large">

				<!-- <button class="btn btn-small btn-success" onclick="changeMenu();" title="切换菜单"><i class="icon-pencil"></i></button> -->

				<button class="btn btn-small btn-info" title="UI实例" id="uiShow" onclick="window.open('<%=basePathl%>static/UI_new');"><i class="icon-eye-open"></i></button>

				<button class="btn btn-small btn-warning" title="数据字典" id="adminzidian" onclick="dictionary();"><i class="icon-book"></i></button>
				<!-- 
				<button class="btn btn-small btn-danger" title="菜单管理" id="adminmenu" onclick="menu();"><i class="icon-folder-open"></i></button>
				-->
			</div>

			<div id="sidebar-shortcuts-mini">
				<span class="btn btn-success"></span>

				<span class="btn btn-info"></span>

				<span class="btn btn-warning"></span>

				<span class="btn btn-danger"></span>
			</div>

		</div><!-- #sidebar-shortcuts -->

		<ul class="nav nav-list">
			<li class="active" id="fhindex">
			  <a href="login_index.do"><i class="icon-dashboard"></i><span>后台首页</span></a>
			</li>
			
			<c:forEach items="${moduleList}" var="module">
				<li id="lm${module.moduleid }">
				  <a href="#" class="dropdown-toggle" >
					<i class="${module.moduleicon == null ? 'icon-desktop' : module.moduleicon}"></i>
					<span>${module.modulename }</span>
					<b class="arrow icon-angle-down"></b>
				  </a>
				  <ul class="submenu">
						<c:forEach items="${module.submodule}" var="sub">
							<c:choose>
								<c:when test="${not empty sub.moduleurl}">
								<li id="z${sub.moduleid }">
								<a style="cursor:pointer;" target="mainFrame"  onclick="siMenu('z${sub.moduleid }','lm${module.moduleid }','${sub.modulename }','${sub.moduleurl }')"><i class="icon-double-angle-right"></i>${sub.modulename }</a></li>
								</c:when>
								<c:otherwise>
								<li><a href="javascript:void(0);"><i class="icon-double-angle-right"></i>${sub.modulename }</a></li>
								</c:otherwise>
							</c:choose>
						</c:forEach>
			  		</ul>
				</li>
			</c:forEach>
		</ul><!--/.nav-list-->

	<div id="sidebar-collapse">
		<i class="icon-double-angle-left"></i>
	</div>
</div><!--/#sidebar-->